import axios from '@/lib/axios'
const $API = '/api'

// 获取广告位列表接口
const getAdvertiseByType = data => axios.post(
  `${$API}/advertise/getAdvertiseByType`,
  data,
)

// 获取用户信息
const getUserInfo = data => axios.post(
  `${$API}/user/index`,
  data,
)

export default {
  getAdvertiseByType,
  getUserInfo,
}
